home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 15: Shareware / PC Actual CDT 15.iso / files / Windows_95_98 / Programacion / Java / kinst351a.exe / data1.cab / plugin_samples / KawaPlugin2.java < prev    next >
Encoding:
Java Source  |  2000-02-17  |  773 b   |  26 lines

  1. import java.util.*;
  2. import com.tektools.kawa.plugin.*;
  3.  
  4. /** This sample program enumerates all the projects and prints the project path */
  5. public class KawaPlugin2
  6. {
  7.     public static void main(String[] args)
  8.     {
  9.         KawaApp.out.showWindow(true);
  10.         KawaApp.out.clearWindow();
  11.         Enumeration enum = KawaApp.enumerateProjects();
  12.         //KawaApp.out.println("Projects - ");
  13.         while(enum.hasMoreElements())
  14.         {
  15.             KawaProject proj = (KawaProject)enum.nextElement();
  16.             if(proj != null && proj.isOpen())
  17.             {
  18.                 KawaApp.out.println("Name - "+proj.getName()+"Path - "+proj.getPath());
  19.                 KawaApp.out.println("Classpath - "+proj.getClasspath(true));
  20.             }
  21.         }
  22.         String str = KawaApp.out.getWindowText();
  23.         KawaApp.out.clearWindow();
  24.         KawaApp.out.println(str);
  25.     }
  26. }